package com.example.securitydemo.mapper;

import com.example.securitydemo.po.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Package: com.example.securitydemo.mapper
 * @ClassName: UserMapper
 * @Author: Think
 * @CreateTime: 2021/7/29 13:50
 * @Description:
 */
@Mapper
public interface UserMapper {

    User getUserByUserName(String userName);

    List<Role> getUserRolesByUserId(Integer userId);

    AnotherUser getAnotherUserByUserName(String userName);

    List<Resource> getUserResourceByUserId(Integer userId);

    AnotherUser2 getAnotherUser2ByUserName(String userName);

}
